{layout name="./base/base_back"}
		<title>提现</title>
		<link rel="stylesheet" type="text/css" href="/front/css/mytravelcoin.css"/>
		<script src="/front/js/jquery.js"></script>
		<script src="/front/js/index.js"></script>
		<!--我的现金开始-->
		<div id="mytravel-coin-box">
			<div id="mytravel-coin">
				{include file="./navleft"}
				<div class="mytravel-coin-right">
					<div class="mytravel-coin-tit">提现<a href="/cash/addbank" style="float: right; color:#FFFFFF; line-height: 32px; cursor: pointer; padding: 0 15px; border-radius: 5px; margin-top: 5px;  background-color: #ea5404;">添加开户行</a></div>
				<!---->
				{if !empty($bank_num_info)}
					<form action="/cash/cash" method="post">
					<div class="my-publish-wish-cont">
						<table width="100%" rules="rows">
							<tr>
								<th>全部</th>
								<th>银行卡号</th>
								<th>开户银行</th>
								<th>操作</th>
							</tr>
							{foreach $bank_num_info as $v}
							<tr align="center">
								<td><input type="radio" name="bank-data" value="{$v.bank_num}&{$v.open_bank}"/></td>
								<td>{$v.bank_num}</td>
								<td>{$v.open_bank}</td>
								<td class="bankNum-del" num="{$v.bank_num}" style="cursor: pointer;color: red; font-weight: 600;">删除</td>
							</tr>
							{/foreach}
						</table>
					</div>
					<div class="mytravel-coin-add">
						
							<div class="form-group-input">
								<label for="" class="form-label">提现账户</label>
								<input type="text" placeholder="本帐号实名认证姓名" value="{$real_name}" disabled="">
							</div>
							<div class="form-group-input">
								<label for="" class="form-label">提现金额</label>
								<input type="text" id="cash" name="amount" placeholder="请输入提现金额">
							</div>
							<div class="form-group-input form-button">
								<button type="submit" class="btn btn-primary" id="recharge">提现</button>
							</div>
					</div>
					</form>
				{else /}
				<!---->
					<div class="mytravel-coin-add">
						<form action="/cash/addbank" method="post">
							<div class="form-group-input">
								<label for="" class="form-label">提现账户</label>
								<input type="text" placeholder="本帐号实名认证姓名" value="{$real_name}" disabled="">
							</div>
							<div class="form-group-input">
								<label for="" class="form-label">开户银行</label>
								<input type="text" id="cash" name="open_bank" placeholder="请输入您的开户行">
							</div>
							<div class="form-group-input" id="write_bank">
								<label for="" class="form-label">银行卡号</label>
								<input type="text" id="bank_num" name="bank_num" placeholder="请输入您本人的银行卡号">
							</div>
							<div class="form-group-input form-button">
								<button type="submit" class="btn btn-primary"   id="recharge">提交</button>
							</div>
						</form>
					</div>
				{/if}
					<dl>
						<dt>温馨提示</dt>
						<dd>（1）为了保障您的账户安全，您需要通过实名认证才能进行提现。在提现时您输入的银行卡的开户人姓名必须与您实名认证时的姓名一致。每日提现最高限额为5000元，1小时内仅限提现一次。</dd>
						<dd>（2）为了账号资金安全，只能使用您本人的银行卡。如需帮助，请拨打双辉客服电话031188989858</dd>
						<dd>（3）您的提现申请提交成功后，正常提现金额在7个工作日内到账。</dd>
						<dd>（4）目前提现支持国内多家主流银行，包括：中国工商银行、中国农业银行、中国建设银行、招商银行、平安银行。</dd>
					</dl>
				</div>
			</div>
		</div>
		<!--我的现金结束-->
		<script type="text/javascript">
			$('.bankNum-del').each(function(){
				$(this).click(function(){
					_this = $(this);
					$.ajax({
						type:"post",
						url:"/cash/del",
						data:{'bank_num':$(this).attr('num')},
						dataType:"json",
						success:function(data){
							if(data.num===1){
								_this.parent('tr').remove();
							}
						}
					});
				})
			})
			$('input[name="bank-data"]').each(function(){
				$(this).click(function(){
					$('input[name="bank-data"]').prop("checked",false);
					$(this).prop('checked',true);
				})
			})
		</script>
		